
import http from '../request.js'
/* 订单控制 */

// 取消订单
export function cancellationOfOrder(data){
	return http({
		url:'/nurse/order/cancellationOfOrder',
		method:"post",
		data:data
	})
}
// 分页查询所有订单
export function nurseSelectOrderList(data){
	return http({
		url:'/nurse/order/nurseSelectOrderList',
		method:"post",
		data:data
	})
}

//查询长期订单的子订单
export function sonOrderList(data){
	return http({
		url:'/nurse/order/nurseSelectSonOrderList',
		method:"GET",
		data:data
	})
}
export function selectByServerNumber(data){
	return http({
		url:'/nurse/order/selectByServerNumber',
		method:"GET",
		data:data
	})
}

// 护士联系用户
export function selectMobileByUserId(data){
	return http({
		url:'/nurse/order/selectMobileByUserId',
		method:"post",
		data:data
	})
}
// 查询订单详情
export function selectOrderInfo(data){
	return http({
		url:'/nurse/order/selectOrderInfo',
		method:"get",
		data:data
	})
}
// 查询首页订单详情
export function selectHomeOrderInfo(data){
	return http({
		url:'nurse/order/getOrdersInfo',
		method:"get",
		data:data
	})
}
// 护士点击已完成和开始服务
export function updateReceiptStatus(data){
	return http({
		url:'/nurse/order/updateReceiptStatus',
		method:"get",
		data:data
	})
}
// 填写多次订单下次服务时间
export function updateServeTime(data){
	return http({
		url:'/nurse/order/updateServeTime',
		method:"get",
		data:data
	})
}
// 抢单
export function grabOrders(data){
	return http({
		url:'/nurse/seckill/grabOrders',
		method:"GET",
		data:data
	})
}

// 护士联系用户
export function mobileUser(data){
	return http({
		url:'/nurse/order/selectMobileByUserId',
		method:"POST",
		data:data
	})
}

// 轮播图
export function allCarouselPicture(data){
	return http({
		url:'/nurse/home/allCarouselPicture',
		method:"GET",
		data:data
	})
}

export function updateOrderStatus(data){
	return http({
		url:'/nurse/order/updateOrderStatus',
		method:"GET",
		data:data
	})
}

export function signDisclaimer(data){
	return http({
		url:'/nurse/order/signDisclaimer',
		method:"GET",
		data:data
	})
}

// 修改服务时间
export function abandonOrContinueToServe(data) {
	return http({
		url: '/nurse/order/abandonOrContinueToServe',
		method: "get",
		data
	})
}

// 上传出发时间
export function updateDepartTime(data) {
	return http({
		url: '/nurse/order/updateDepartTime',
		method: "get",
		data
	})
}

// 判断是否有已出发订单 进行中订单 服务流程未结束订单
export function selectOrderStatusData(data) {
	return http({
		url: '/nurse/order/selectOrderStatusData',
		method: "get",
		data
	})
}

  // 查询订单是否存在已出发且未到达三公里
export function selectThreeKilometersByNurseId(data) {
	return http({
		url: '/nurse/order/selectThreeKilometersByNurseId',
		method: "get",
		data
	})
}




// 三百米 是否可以打卡 开始服务
export function nurseWhetherItIsAHundredMeters(data) {
	return http({
		url: '/nurse/order/nurseWhetherItIsAHundredMeters',
		method: "post",
		data
	})
}



// 三百米 是否可以打卡 服务结束
export function endOfServiceThreeHundredMeters(data) {
	return http({
		url: '/nurse/order/endOfServiceThreeHundredMeters',
		method: "post",
		data
	})
}

// 计算距离三公里
export function nurseAuthorizationLocating(data) {
	return http({
		url: '/nurse/order/nurseAuthorizationLocating',
		method: "post",
		data
	})
}

// 
export function modifyTheServiceAddress(data) {
	return http({
		url: '/nurse/order/modifyTheServiceAddress ',
		method: "post",
		data
	})
}



export function updateEvaluateOrder(data) {
	return http({
		url: '/nurse/order/updateEvaluateOrder',
		method: "get",
		data
	})
}